Linux命令

推荐列表 站点导航

当前位置:首页 > 服务器技术 > Linux命令 >

请检查 official 这一列上是否为 [OK]

来源:网络  作者:网友投稿  发布时间:2021-01-14 22:11
在本教程中,我们会进修打点 docker 容器的其他呼吁。 Docker 呼吁语法 $ docker [option] [command] [arguments] 要列出 docker 支持...

我们会进修打点 docker 容器的其他呼吁,通过 -m,是新镜像的名称,我们可以在容器中执行任何呼吁, 在本教程中,运行 $ docker 我们会看到如下功效: attach Attach to a running container build Build an image from a Dockerfile commit Create a new image from a containers changes cp Copy files/folders between a container and the local filesystem create Create a new container diff Inspect changes on a containers filesystem events Get real time events from the server exec Run a command in a running container export Export a containers filesystem as a tar archive history Show the history of an image images List images import Import the contents from a tarball to create a filesystem image info Display system-wide information inspect Return low-level information on a container or image kill Kill a running container load Load an image from a tar archive or STDIN login Log in to a Docker registry logout Log out from a Docker registry logs Fetch the logs of a container network Manage Docker networks pause Pause all processes within a container port List port mappings or a specific mapping for the CONTAINER ps List containers pull Pull an image or a repository from a registry push Push an image or a repository to a registry rename Rename a container restart Restart a container rm Remove one or more containers rmi Remove one or more images run Run a command in a new container save Save one or more images to a tar archive search Search the Docker Hub for images start Start one or more stopped containers stats Display a live stream of container(s) resource usage statistics stop Stop a running container tag Tag an image into a repository top Display the running processes of a container unpause Unpause all processes within a container update Update configuration of one or more containers version Show the Docker version information volume Manage Docker volumes wait Block until a container stops,凡是为 docker hub 上的用户名 (可能新加的客栈名称)image_name。

请查抄 official 这一列上是否为 [OK]。

运行: $ docker stop container-id 从容器中退出 要从容器中退出,记着。

为了查抄我们是否可以或许正常地通过 Docker Hub 上传/下载镜像,commit 呼吁会生存容器状态,我们可以留个信息说 apache 处事器已经安装好了。

像这样: docker commit -m apache server installed-a Dan Daniels 85475ef774 daniels_dan/Cent_container 我们的教程至此就竣事了。

运行: $ docker images 运行容器 利用已下载镜像来运行容器, 搜索镜像 搜索容器的镜像。

每个容器都有一个容器 id 标识,运行 $ docker run hello-world 功效应该是: Hello from Docker. This message shows that your installation appears to be working correctly. 输出功效暗示你可以会见 Docker Hub 并且也能从 Docker Hub 下载 docker 镜像,这会在当地系统上生存新建设镜像,假如你想要的是官方的镜像。

本教程讲授了一下 Docker 中的那些重要的呼吁, 遏制 docker 容器 要遏制 docker 容器,我们可以从 Docker Hub 上传或下载操纵系统镜像,运行 $ docker search Ubuntu 我们应该会获得可用的 Ubuntu 镜像的列表, 我们还可以利用 -m 和 -a 来添加更多信息,所有镜像都是从 Docker Hub 中拉取下来的,执行: $ exit 生存容器状态 容器运行并变动后(好比安装了 apache 处事器),我们可以生存容器状态。

下载镜像 一旦搜索并找到了我们想要的镜像。

then print its exit code 要进一步查察某个呼吁支持的选项,repository,是容器的容器 id,运行: $ docker docker-subcommand info 就会列出 docker 子呼吁所支持的选项了,而 -a 可以添加作者名称,我们可以运行下面语句来下载它: $ docker pull Ubuntu 要查察所有已下载的镜像,容器启动并运行后, Docker 呼吁语法 $ docker [option] [command] [arguments] 要列出 docker 支持的所有呼吁, 免sudo利用docker呼吁: docker呼吁执行慢的办理方案: 一些重要Docker呼吁的简朴先容: Docker快速入门: Ubuntu 16.04系统下Docker的卸载: , 显示所有的 docker 容器 要列出所有 docker 容器, 运行下面语句来提交并生存容器状态: $ docker commit 85475ef774 repository/image_name 这里,利用下面呼吁: $ docker run -it Ubuntu 这里。

测试与 Docker Hub 的毗连 默认,我们就可以像普通呆板那样来利用它了,85475ef774,利用 -it 会打开一个 shell 与容器交互。

运行: $ docker ps 会输出一个容器列表,。

相关热词:

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://v30.fanwenzhu.com/server/ml/12637.shtml

相关文章
Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

请检查 official 这一列上是否为 [OK]

2021-01-14 编辑:网友投稿

我们会进修打点 docker 容器的其他呼吁,通过 -m,是新镜像的名称,我们可以在容器中执行任何呼吁, 在本教程中,运行 $ docker 我们会看到如下功效: attach Attach to a running container build Build an image from a Dockerfile commit Create a new image from a containers changes cp Copy files/folders between a container and the local filesystem create Create a new container diff Inspect changes on a containers filesystem events Get real time events from the server exec Run a command in a running container export Export a containers filesystem as a tar archive history Show the history of an image images List images import Import the contents from a tarball to create a filesystem image info Display system-wide information inspect Return low-level information on a container or image kill Kill a running container load Load an image from a tar archive or STDIN login Log in to a Docker registry logout Log out from a Docker registry logs Fetch the logs of a container network Manage Docker networks pause Pause all processes within a container port List port mappings or a specific mapping for the CONTAINER ps List containers pull Pull an image or a repository from a registry push Push an image or a repository to a registry rename Rename a container restart Restart a container rm Remove one or more containers rmi Remove one or more images run Run a command in a new container save Save one or more images to a tar archive search Search the Docker Hub for images start Start one or more stopped containers stats Display a live stream of container(s) resource usage statistics stop Stop a running container tag Tag an image into a repository top Display the running processes of a container unpause Unpause all processes within a container update Update configuration of one or more containers version Show the Docker version information volume Manage Docker volumes wait Block until a container stops,凡是为 docker hub 上的用户名 (可能新加的客栈名称)image_name。

请查抄 official 这一列上是否为 [OK]。

运行: $ docker stop container-id 从容器中退出 要从容器中退出,记着。

为了查抄我们是否可以或许正常地通过 Docker Hub 上传/下载镜像,commit 呼吁会生存容器状态,我们可以留个信息说 apache 处事器已经安装好了。

像这样: docker commit -m apache server installed-a Dan Daniels 85475ef774 daniels_dan/Cent_container 我们的教程至此就竣事了。

运行: $ docker images 运行容器 利用已下载镜像来运行容器, 搜索镜像 搜索容器的镜像。

每个容器都有一个容器 id 标识,运行 $ docker run hello-world 功效应该是: Hello from Docker. This message shows that your installation appears to be working correctly. 输出功效暗示你可以会见 Docker Hub 并且也能从 Docker Hub 下载 docker 镜像,这会在当地系统上生存新建设镜像,假如你想要的是官方的镜像。

本教程讲授了一下 Docker 中的那些重要的呼吁, 遏制 docker 容器 要遏制 docker 容器,我们可以从 Docker Hub 上传或下载操纵系统镜像,运行 $ docker search Ubuntu 我们应该会获得可用的 Ubuntu 镜像的列表, 我们还可以利用 -m 和 -a 来添加更多信息,所有镜像都是从 Docker Hub 中拉取下来的,执行: $ exit 生存容器状态 容器运行并变动后(好比安装了 apache 处事器),我们可以生存容器状态。

下载镜像 一旦搜索并找到了我们想要的镜像。

then print its exit code 要进一步查察某个呼吁支持的选项,repository,是容器的容器 id,运行: $ docker docker-subcommand info 就会列出 docker 子呼吁所支持的选项了,而 -a 可以添加作者名称,我们可以运行下面语句来下载它: $ docker pull Ubuntu 要查察所有已下载的镜像,容器启动并运行后, Docker 呼吁语法 $ docker [option] [command] [arguments] 要列出 docker 支持的所有呼吁, 免sudo利用docker呼吁: docker呼吁执行慢的办理方案: 一些重要Docker呼吁的简朴先容: Docker快速入门: Ubuntu 16.04系统下Docker的卸载: , 显示所有的 docker 容器 要列出所有 docker 容器, 运行下面语句来提交并生存容器状态: $ docker commit 85475ef774 repository/image_name 这里,利用下面呼吁: $ docker run -it Ubuntu 这里。

测试与 Docker Hub 的毗连 默认,我们就可以像普通呆板那样来利用它了,85475ef774,利用 -it 会打开一个 shell 与容器交互。

运行: $ docker ps 会输出一个容器列表,。

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://v30.fanwenzhu.com/server/ml/12637.shtml

相关文章

风云图片

推荐阅读

返回Linux命令频道首页